package sdl2_impl

import "time"

type Clock struct {
	start time.Time
}

func NewClock() *Clock {
	return &Clock{}
}

func (c *Clock) StartClock() {
	c.start = time.Now()
}

func (c *Clock) SinceStart() time.Duration {
	return time.Now().Sub(c.start)
}
